package org.example.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
@NoArgsConstructor
@AllArgsConstructor
@Data
public class FamilyDetail {
    public FamilyDetail(Date currentTime,int familyId,int userId,String parentName){

        createTime=currentTime;
        updateTime=currentTime;
        exits=1;
        this.familyId = familyId;
        this.userId=userId;
        this.name = parentName;
    }
    public int familyId;
    public int userId;
    public Date createTime;
    public Date updateTime;
    public int exits;
    public String name;
    /** 0学生 1家长**/
    public int role;
    @TableId
    public int id;
}
